/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

/**
 * <p>Project: jse2303 - For2
 * <p>Powered by webrx On 2023-07-11 14:36:57
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class For3 {
    public static void main(String[] args) {
        //计算1+2+3+...+100 = ?
        int sum = 0;
        for (int i = 1; i <= 100; i++) {
            sum += i;
        }
        System.out.printf("1+2+3+...+100=%d", sum);

        //计算1-100 之间所有素数和?11 17 23
        System.out.println();
        System.out.println("\33[31m31\33[0m");
        System.out.println("\33[32m32\33[0m");
        System.out.println("\33[33m33\33[0m");
        System.out.println("\33[34m34\33[0m");
        System.out.println("\33[35m35\33[0m");
    }
}
